package com.rybbaby.tss.front.tssMemberPackage.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
 * @description 会员课时视图
 *
 * @author 杨然
 *
 * @createDate 2017年11月7日09:02:39
 */
@Entity
@Table(name = "view_memberPackage_student_staff")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewMemberPackageStudent implements Serializable {

    private static final long serialVersionUID = 20656070622809L;

    //会员编号
    private String stuId;

    //会员姓名
    private String stuName;

    //会员年龄
    private Integer stuAge;

    //会员生日
    private Date stuBirthday;

    //会员联系方式
    private String stuPhone;

    //是否过渡会员(1:亲子会员,2:过渡会员)
    private Integer type;

    //客户状态(null:亲子历史会员,!null：过渡历史会员)
    private Integer stuStatus;

    //报名状态(0新报 1续报)
    private Integer applyStatus;

    //报班状态
    private String classState;

    //可用课时包
    private Integer usableTotalClassHour;

    //剩余课时
    private Integer surplusClassHour;

    //剩余有效期
    private Integer surplusValidDate;

    //所属顾问编号
    private String empAdminUserId;

    //所属顾问姓名
    private String realName;

    //转会员日期
    private Date turnIntoMemberDate;

    //操作人Id
    private String adminUserId;

    //操作人姓名
    private String userName;


    /**
     * 生成各个属性的get方法
     * */
    /**
     * 方法: 取得主键
     *
     * @return java.lang.String 主键
     */
    @Id
    @GeneratedValue(generator = "view_memberPackage_student_staffIDGenerator" , strategy = GenerationType.AUTO)
    @GenericGenerator(name = "view_memberPackage_student_staffIDGenerator" , strategy = "uuid")
    @Column(name = "stuId", nullable= false, length = 32)
    public String getStuId() {
        return stuId;
    }

    @Column(name = "stuName", nullable= true, length = 20)
    public String getStuName() {
        return stuName;
    }

    @Column(name = "stuAge", nullable= true, length = 10)
    public Integer getStuAge() {
        return stuAge;
    }

    @Column(name = "stuBirthday", nullable= true, length = 30)
    public Date getStuBirthday() {
        return stuBirthday;
    }

    @Column(name = "stuPhone", nullable= true, length = 30)
    public String getStuPhone() {
        return stuPhone;
    }

    @Column(name = "type", nullable= true, length = 10)
    public Integer getType() {return type; }

    @Column(name = "stuStatus", nullable= true, length = 10)
    public Integer getStuStatus() {return stuStatus; }

    @Column(name = "applyStatus", nullable= true, length = 30)
    public Integer getApplyStatus() {
        return applyStatus;
    }

    @Column(name = "classState", nullable= true, length = 30)
    public String getClassState() {
        return classState;
    }

    @Column(name = "usableTotalClassHour", nullable= true, length = 30)
    public Integer getUsableTotalClassHour() {
        return usableTotalClassHour;
    }

    @Column(name = "surplusClassHour", nullable= true, length = 30)
    public Integer getSurplusClassHour() {
        return surplusClassHour;
    }

    @Column(name = "surplusValidDate", nullable= true, length = 30)
    public Integer getSurplusValidDate() {
        return surplusValidDate;
    }

    @Column(name = "empAdminUserId", nullable= true, length = 32)
    public String getEmpAdminUserId() {
        return empAdminUserId;
    }

    @Column(name = "realName", nullable= true, length = 20)
    public String getRealName() {
        return realName;
    }

    @Column(name = "turnIntoMemberDate", nullable= true, length = 20)
    public Date getTurnIntoMemberDate() {
        return turnIntoMemberDate;
    }

    @Column(name = "adminUserId", nullable= true, length = 32)
    public String getAdminUserId() {
        return adminUserId;
    }

    @Column(name = "userName", nullable= true, length = 20)
    public String getUserName() {
        return userName;
    }


    /**
     * 生成各个属性的set方法
     * */
    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public void setStuBirthday(Date stuBirthday) {
        this.stuBirthday = stuBirthday;
    }

    public void setStuPhone(String stuPhone) {
        this.stuPhone = stuPhone;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setStuStatus(Integer stuStatus) {this.stuStatus = stuStatus; }

    public void setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
    }

    public void setClassState(String classState) {
        this.classState = classState;
    }

    public void setUsableTotalClassHour(Integer usableTotalClassHour) {
        this.usableTotalClassHour = usableTotalClassHour;
    }

    public void setSurplusClassHour(Integer surplusClassHour) {
        this.surplusClassHour = surplusClassHour;
    }

    public void setSurplusValidDate(Integer surplusValidDate) {
        this.surplusValidDate = surplusValidDate;
    }

    public void setEmpAdminUserId(String empAdminUserId) {
        this.empAdminUserId = empAdminUserId;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public void setTurnIntoMemberDate(Date turnIntoMemberDate) {
        this.turnIntoMemberDate = turnIntoMemberDate;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
